package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int insert(Permission record);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKey(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    void deleteByExpression(String expression);

    List selectList(QueryObject qo);

    List selectByRoleId(Long roleId);

    List<Permission> selectByEmpId(Long empId);
}